package com.smartfactory.sail.vo.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smartfactory.sail.entity.enums.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 王巨壁
 * @title: ShippedInfoListResp
 * @projectName smart-sail
 * @description: 订单货物详情
 * @date 2019/8/109:03
 */
@Data
public class ListOrderItemInfoResp {
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    @ApiModelProperty(value = "产品id")
    private Long itemId;

    @ApiModelProperty(value = "合同id")
    private Long contractId;
    //itemOrder 信息
    @ApiModelProperty(value = "订单产品状态")
    private OrderItemStatusEnum status;

    @ApiModelProperty(value = "产品订单数量")
    private Integer size;

    @ApiModelProperty(value = "已发货数量")
    private Integer shippedSize;

    @ApiModelProperty(value = "剩余数量/库存数量")
    private String surplusAndTotal;

    @ApiModelProperty(value = "已发货次数")
    private Integer shippedCount;

    @ApiModelProperty(value = "多个生产图纸id用符号|隔开")
    private String productDrawings;

    @ApiModelProperty(value = "客户图纸多个用|隔开")
    private String custDrawings;

    @ApiModelProperty(value = "技术图纸")
    private String technicalDrawings;

    @ApiModelProperty(value = "成本单价")
    private Double costPrice;

    @ApiModelProperty(value = "对外报价")
    private Double offer;

    @ApiModelProperty(value = "成本价报价人")
    private Long cosPriceUserId;

    @ApiModelProperty(value = "销售价报价人")
    private Long offerUserId;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    private String createTime;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    //item
    @ApiModelProperty(value = "编码")
    private String itemCode;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "描述没有默认就使用name的值")
    private String info;

    @ApiModelProperty(value = "图纸编号")
    @TableField("drawingCode")
    private String drawingCode;

    @ApiModelProperty(value = "材料质地")
    private String texture;

    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ApiModelProperty(value = "质量")
    private String quality;

    @ApiModelProperty(value = "报废率百分比")
    @TableField("scrapRate")
    private Integer scrapRate;
    //order

    @ApiModelProperty(value = "订单模式1.生产订单2修磨订单3外包订单4混合订单具体参考constants表")
    @TableField("orderMode")
    private OrderModelEnum orderMode;

    @ApiModelProperty(value = "交货日期")
    @TableField("deliveryDate")
    private String deliveryDate;


    //contract
    @ApiModelProperty(value = "客户id")
    @TableField("custId")
    private Long custId;

    @ApiModelProperty(value = "客户名称-客户名称会变动合同中只记录当前名称")
    @TableField("custName")
    private String custName;

    @ApiModelProperty(value = "合同批号")
    private String contractCode;


    @ApiModelProperty(value = "联系人名称")
    @TableField("contactsName")
    private String contactsName;


    @ApiModelProperty(value = "联系方式")
    @TableField("contactInformation")
    private String contactInformation;


    @ApiModelProperty(value = "企业地址")
    @TableField("custAddr")
    private String custAddr;


    @ApiModelProperty(value = "合同金额单位:元")
    @TableField("contractAmount")
    private Double contractAmount;

    @ApiModelProperty(value = "付款方式:1现金2全款3分期")
    @TableField("payType")
    private ContractPaytypeEnum payType;

    @ApiModelProperty(value = "合同类型1普通2加急")
    @TableField("contractType")
    private ContractTypeEnum contractType;

    @ApiModelProperty(value = "付款时间节点可能是多个时间用逗号隔开")
    @TableField("deliveryTimeNode")
    private String deliveryTimeNode;

    @ApiModelProperty(value = "签单人id")
    @TableField("signerId")
    private Long signerId;

    @ApiModelProperty(value = "合同图片多个用逗号隔开")
    @TableField("contractImgs")
    private String contractImgs;

    @ApiModelProperty(value = "开票状态1未开票2已开票")
    @TableField("InvoiceStatus")
    private ContractInvoiceStatusEnum InvoiceStatus;
}
